﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="adm_stats_report_det.aspx.cs" Inherits="Admin_adm_stats_report_det" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">

<style type="text/css">
        @import url(js/calendar-blue.css);
    </style>
    <script type='text/javascript' src="js/calendar.js"></script>
    <script type='text/javascript' src="js/calendar-en.js"></script>
    <script type='text/javascript' src="js/calendar-setup.js"></script>

<h3>Stats Report Summary</h3>
<div>&nbsp;</div>
<div> <asp:Literal ID="ltrWellcome" runat="server"></asp:Literal></div>
<div>
    <div>
    		<table cellspacing="0" cellpadding="3" border="0" bgcolor="#e55a5d">
											<tbody><tr>
												<td colspan="2" class="clsTitle">Filter By:</td>									
												<td colspan="2" class="clsTitle">Sort By:</td>
											</tr>
											<tr>
												<td><asp:RadioButton ID='rdbQuickPeriod' GroupName='selectdaterange'   runat='server'/></td>
												<td>
													<asp:DropDownList ID='ddlQuickPeriod' style="width: 100px;" onfocus="showTypedate(0)" 
													 runat='server'>
														
														<asp:ListItem  value="last7">Last 7 days</asp:ListItem >													
														
														<asp:ListItem  value="last30">Last 30 days</asp:ListItem >													
														
														<asp:ListItem  value="lw">Last Week</asp:ListItem >													
														
														<asp:ListItem  value="lm">Last month</asp:ListItem >													
														
														<asp:ListItem  value="tw">This Week</asp:ListItem >													
														
														<asp:ListItem  selected="" value="tm">This Month</asp:ListItem >													
														
													</asp:DropDownList>	
												</td>
												<td>
													<asp:DropDownList class="frmSortS" id='ddlSort' runat='server'>
														<asp:ListItem value="">Sort By</asp:ListItem>
														<asp:ListItem value="DateVisit">Date</asp:ListItem>
														<asp:ListItem value="NumHit">Num Hit</asp:ListItem>														
													</asp:DropDownList>											
												</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td><asp:RadioButton  id='rdbSelectRangeDate'  GroupName='selectdaterange' runat='server'/></td>
												<td><asp:TextBox onfocus="showTypedate(1)" class="frmSort" style="width: 100px;" 
												id='txtDateFrom' runat='server'/>
												<img id='btnDateFrom' width="16" hspace="5" height="16" border="0" align="top" alt="" 
												 onmousedown="showTypedate(1)" 
												src="../images/ico_calenda.gif"/>&nbsp;&nbsp;
												 <script type="text/javascript">
                      Calendar.setup(
                        {
                          inputField  : '<%= txtDateFrom.ClientID %>',         // ID of the input field
                          ifFormat    : "%Y/%m/%d ",    // the date format
                          button      : "btnDateFrom"       // ID of the button
                        }
                      );
                    </script>&nbsp;
													<asp:TextBox onfocus="showTypedate(1)" class="frmSort" style="width: 100px;" 
													id='txtDateTo' runat='server'/>
													<img id='btnDateTo' width="16" hspace="5" height="16" border="0" align="top" alt="" 
													 onmousedown="showTypedate(1)"
													src="../images/ico_calenda.gif"/>
													 <script type="text/javascript">
                      Calendar.setup(
                        {
                          inputField  : '<%= txtDateTo.ClientID %>',         // ID of the input field
                          ifFormat    : "%Y/%m/%d ",    // the date format
                          button      : "btnDateTo"       // ID of the button
                        }
                      );
                    </script>
													</td>
												<td>
													<asp:DropDownList CssClass="frmSortS" id="ddlOrder" runat='server'>
														<asp:ListItem value="">Sort Order</asp:ListItem>
														<asp:ListItem value="ASC">A-Z</asp:ListItem>
														<asp:ListItem value="DESC">Z-A</asp:ListItem>													
													</asp:DropDownList>											
												</td>
												<td nowrap="" algin="right">
													<asp:Button ID='btnReset'  CssClass="btnGo" Text="Reset" runat='server'/>&nbsp;													
													<asp:Button ID='btnFilter'  CssClass="btnGo" Text="Filter" runat='server'/>								
												</td>
											</tr>														
										</tbody></table>
    </div>
    <div>
    <div>
    <asp:Literal ID="ltrPaging" runat="server"></asp:Literal>
    </div>
        <asp:GridView ID="GridView1" runat="server">
        </asp:GridView>
    
    </div>
</div>
<script type='text/javascript'>
function showTypedate(objtype)
{
    if(objtype==0)
    {
       document.getElementById('<%= rdbQuickPeriod.ClientID  %>').checked=true;
    }
    else
    {
    document.getElementById('<%= rdbSelectRangeDate.ClientID  %>').checked=true;
    }
}
</script>
</asp:Content>

